home *** CD-ROM | disk | FTP | other *** search
- Path: erich.triumf.ca!bennett
- From: bennett@erich.triumf.ca (P.Bennett)
- Newsgroups: comp.lang.c
- Subject: Re: Printing to Printer
- Date: 22 Feb 1996 23:00 PST
- Organization: TRIUMF: Tri-University Meson Facility
- Distribution: world
- Message-ID: <22FEB199623005830@erich.triumf.ca>
- References: <4gj599$rbr@news.bu.edu>
- NNTP-Posting-Host: erich.triumf.ca
- News-Software: VAX/VMS VNEWS 1.50
-
- In article <4gj599$rbr@news.bu.edu>, rajman@bu.edu (Rajesh Keswani) writes...
- >I am currently trying to print to the printer with ofstream, etc...
- >
- >It's is all going to the printer fine, but it is staying in the
- >printer's memory, and not ejecting the page...
- >If I reset the printer, the page comes out... that isn't really what
- >I need!
- >Can someone please tell me what to do to "end a printing session" so the
- >pritner can do a form feed or something and print out the page?
-
- Depends on your printer (and perhaps on your operating system and print
- manager as well...)
-
- However:
-
- Dot matrix printers often cannot print a single char - they must print a whole
- line at a time, so won't print til they get a CR/LF or similar indication that
- they have received a full line.
-
- Lazer printers won't print til they have a full page, so you have to send a
- form feed character ('\f') after your text to make them print. (or perhaps
- something else if in graphics mode - consult the printer documentation)
-
-
-
-
- Peter Bennett VE7CEI | Vessels shall be deemed to be in sight
- Internet: bennett@triumf.ca | of one another only when one can be
- Packet: ve7cei@ve7kit.#vanc.bc.ca | observed visually from the other
- TRIUMF, Vancouver, B.C., Canada | ColRegs 3(k)
- GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
-
-
-
-